import axios from "axios";

// 用户发的帖
export function userTopic(user_id, page, per_page) {
    return axios.post('userTopic/' + user_id, {
        page,
        per_page
    })
}

// 修改密码
export function password(user_id, old_password, password, confirm_password) {
    return axios.post('password/' + user_id, {
        old_password,
        confirm_password,
        password
    })
}

// 我的消息
export function myMessage(user_id, page, per_page) {
    return axios.post('message/' + user_id, {
        page,
        per_page
    })
}

// 清除消息
export function isRead(id = 0) {
    return axios.post('isRead/' + id)
}